package hy;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.OrderService;

import java.io.IOException;

public class ConsumerTest {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext app=new ClassPathXmlApplicationContext("classpath:consumer.xml");
        OrderService os=app.getBean(OrderService.class);
        os.initOrder("a1");
        System.out.println("调用完成");
        System.in.read();
    }
}
